package com.tianjin.design.chainofresponsibility;

public class OneLeaderhandler extends LeaderHandler{
    @Override
    public void handler(Request request) {

        if (request.getDay() < 3) {
            System.out.println("部门经理处理审批请求："+ request.toString());
        } else {
            // 当前级别处理不了，就将请求丢给上级去处理
            System.out.println("部门经理无法处理审批请求，往上提报");
            leaderHandler.handler(request);
        }
    }
}
